package com.talkweb.platform.commonapi.entity.db;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@Entity
@Table(name = "bpm_orgRoleMembers") // 设置数据库中表名字
@ApiModel(value = "Role", description = "角色信息表")
public class RoleMember {

	@Id
	@Column(name = "WF_OrUnid")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "SELECT REPLACE(UUID(),'-','')")
	private String WF_OrUnid;
	
	@Column(name = "RoleType")
	@ApiModelProperty(value = "角色类型", required = false)
	private String roleType;
	
	@Column(name = "RoleNumber")
	@ApiModelProperty(value = "角色编号", required = true)
	private String roleNumber;
	
	@Column(name = "MemberName")
	@ApiModelProperty(value = "成员名称", required = true)
	private String memberName;
	
	@Column(name = "Member")
	@ApiModelProperty(value = "成员id", required = true)
	private String member;
	
	@Column(name = "OrgClass")
	@ApiModelProperty(value = "组织类型", required = false)
	private String orgClass;
	
	@Column(name = "Folderid")
	@ApiModelProperty(value = "角色成员层级编号", required = true)
	private String folderId;
	
	@Column(name = "Deptid")
	@ApiModelProperty(value = "角色成员部门编号", required = true)
	private String deptId;
	
	@Column(name = "SortNum")
	@ApiModelProperty(value = "角色成员排序号", required = false)
	private String sortNum;
	
	@Column(name = "ExtFolderid")
	@ApiModelProperty(value = "成员强制部门层级编号", required = false)
	private String extFolderId;
	
	@Column(name = "ExtDeptid")
	@ApiModelProperty(value = "成员强制部门编号", required = false)
	private String extDeptId;
	
	@Column(name = "MEMBERTYPE")
	@ApiModelProperty(value = "成员类型", required = false)
	private String memberType;
	
}
